package com.zyit.dao;

import com.zyit.DataObject.T_user;
import com.zyit.util.BeanRowMapper;
import com.zyit.util.DBHelp;

public class T_userDaoSYY {
    private DBHelp dbHelp = new DBHelp();

    public T_user findByUsernameAndPwd(String account, String password) throws Exception {
        String sql = "select * from t_user where account=? and password=?";
        return dbHelp.executeQueryForObject(sql, new BeanRowMapper<>(T_user.class), account, password);

    }


}
